home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple Software Dispatch
/
Apple Software Dispatch.iso
/
Software Dispatch Files
/
Resolve
/
Sample Application
/
Sample Application.rsrc
/
CODE_31_SOUND.txt
< prev
next >
Wrap
Text File
|
1993-07-15
|
25KB
|
455 lines
# near model CODE resource
# jump table entries: 9824-9824 (1 of them)
fn00000000:
00000000 48E7 0318 movem.l -[A7], D6,D7,A3,A4
00000004 3C2F 001E move.w D6, [A7 + 0x1E]
00000008 286F 0018 movea.l A4, [A7 + 0x18]
0000000C 266F 0014 movea.l A3, [A7 + 0x14]
00000010 6002 bra +0x4 /* 00000014 */
label00000012:
00000012 5293 addq.l [A3], 1
label00000014:
00000014 2053 movea.l A0, [A3]
00000016 4A10 tst.b [A0]
00000018 6714 beq +0x16 /* 0000002E */
0000001A 2053 movea.l A0, [A3]
0000001C 7000 moveq.l D0, 0x00
0000001E 1010 move.b D0, [A0]
00000020 D040 add.w D0, D0
00000022 41ED A414 lea.l A0, [A5 - 0x5BEC]
00000026 7240 moveq.l D1, 0x40
00000028 C270 0000 and.w D1, [A0 + D0.w]
0000002C 66E4 bne -0x1A /* 00000012 */
label0000002E:
0000002E 2053 movea.l A0, [A3]
00000030 4A10 tst.b [A0]
00000032 660E bne +0x10 /* 00000042 */
00000034 206F 0024 movea.l A0, [A7 + 0x24]
00000038 30BC FFFE move.w [A0], 0xFFFE
0000003C 7001 moveq.l D0, 0x01
0000003E 6000 0170 bra +0x172 /* 000001B0 */
label00000042:
00000042 2053 movea.l A0, [A3]
00000044 7000 moveq.l D0, 0x00
00000046 1010 move.b D0, [A0]
00000048 41ED A714 lea.l A0, [A5 - 0x58EC]
0000004C 7200 moveq.l D1, 0x00
0000004E 1230 0000 move.b D1, [A0 + D0.w]
00000052 2E01 move.l D7, D1
00000054 7041 moveq.l D0, 0x41
00000056 9E80 sub.l D7, D0
00000058 4A87 tst.l D7
0000005A 6D18 blt +0x1A /* 00000074 */
0000005C 7006 moveq.l D0, 0x06
0000005E B087 cmp.l D0, D7
00000060 6D12 blt +0x14 /* 00000074 */
00000062 2007 move.l D0, D7
00000064 D040 add.w D0, D0
00000066 41ED B24C lea.l A0, [A5 - 0x4DB4]
0000006A 226F 0024 movea.l A1, [A7 + 0x24]
0000006E 32B0 0000 move.w [A1], [A0 + D0.w]
00000072 6018 bra +0x1A /* 0000008C */
label00000074:
00000074 7011 moveq.l D0, 0x11
00000076 B087 cmp.l D0, D7
00000078 660A bne +0xC /* 00000084 */
0000007A 206F 0024 movea.l A0, [A7 + 0x24]
0000007E 30BC FFFF move.w [A0], 0xFFFF
00000082 6008 bra +0xA /* 0000008C */
label00000084:
00000084 5293 addq.l [A3], 1
00000086 7000 moveq.l D0, 0x00
00000088 6000 0126 bra +0x128 /* 000001B0 */
label0000008C:
0000008C 5293 addq.l [A3], 1
0000008E 206F 0024 movea.l A0, [A7 + 0x24]
00000092 4A50 tst.w [A0]
00000094 6D68 blt +0x6A /* 000000FE */
00000096 2053 movea.l A0, [A3]
00000098 7023 moveq.l D0, 0x23
0000009A B010 cmp.b D0, [A0]
0000009C 660A bne +0xC /* 000000A8 */
0000009E 206F 0024 movea.l A0, [A7 + 0x24]
000000A2 5250 addq.w [A0], 1
000000A4 5293 addq.l [A3], 1
000000A6 6010 bra +0x12 /* 000000B8 */
label000000A8:
000000A8 2053 movea.l A0, [A3]
000000AA 7062 moveq.l D0, 0x62
000000AC B010 cmp.b D0, [A0]
000000AE 6608 bne +0xA /* 000000B8 */
000000B0 206F 0024 movea.l A0, [A7 + 0x24]
000000B4 5350 subq.w [A0], 1
000000B6 5293 addq.l [A3], 1
label000000B8:
000000B8 2053 movea.l A0, [A3]
000000BA 7000 moveq.l D0, 0x00
000000BC 1010 move.b D0, [A0]
000000BE 2E00 move.l D7, D0
000000C0 702F moveq.l D0, 0x2F
000000C2 9E80 sub.l D7, D0
000000C4 4A87 tst.l D7
000000C6 6F2A ble +0x2C /* 000000F2 */
000000C8 700A moveq.l D0, 0x0A
000000CA B087 cmp.l D0, D7
000000CC 6D24 blt +0x26 /* 000000F2 */
000000CE 206F 0024 movea.l A0, [A7 + 0x24]
000000D2 2207 move.l D1, D7
000000D4 2001 move.l D0, D1
000000D6 C2FC 000C mulu.w D1, 0xC
000000DA 4840 swap.w D0
000000DC C0FC 000C mulu.w D0, 0xC
000000E0 4840 swap.w D0
000000E2 4240 clr.w D0
000000E4 D280 add.l D1, D0
000000E6 226F 0020 movea.l A1, [A7 + 0x20]
000000EA 3281 move.w [A1], D1
000000EC D350 add.w [A0], D1
000000EE 5293 addq.l [A3], 1
000000F0 600C bra +0xE /* 000000FE */
label000000F2:
000000F2 206F 0024 movea.l A0, [A7 + 0x24]
000000F6 226F 0020 movea.l A1, [A7 + 0x20]
000000FA 3011 move.w D0, [A1]
000000FC D150 add.w [A0], D0
label000000FE:
000000FE 2053 movea.l A0, [A3]
00000100 7000 moveq.l D0, 0x00
00000102 1010 move.b D0, [A0]
00000104 41ED A714 lea.l A0, [A5 - 0x58EC]
00000108 7200 moveq.l D1, 0x00
0000010A 1230 0000 move.b D1, [A0 + D0.w]
0000010E 0481 0000 0045 subi.l D1, 0x45 /* 'E' */
00000114 6736 beq +0x38 /* 0000014C */
00000116 5781 subq.l D1, 3
00000118 6720 beq +0x22 /* 0000013A */
0000011A 0481 0000 0009 subi.l D1, 0x9 /* '\t' */
00000120 6724 beq +0x26 /* 00000146 */
00000122 5581 subq.l D1, 2
00000124 6734 beq +0x36 /* 0000015A */
00000126 5381 subq.l D1, 1
00000128 673E beq +0x40 /* 00000168 */
0000012A 5781 subq.l D1, 3
0000012C 6648 bne +0x4A /* 00000176 */
0000012E 48C6 ext.l D6
00000130 2006 move.l D0, D6
00000132 E580 asl D0, 2
00000134 3880 move.w [A4], D0
00000136 5293 addq.l [A3], 1
00000138 6040 bra +0x42 /* 0000017A */
label0000013A:
0000013A 48C6 ext.l D6
0000013C 2006 move.l D0, D6
0000013E E380 asl D0, 1
00000140 3880 move.w [A4], D0
00000142 5293 addq.l [A3], 1
00000144 6034 bra +0x36 /* 0000017A */
label00000146:
00000146 3886 move.w [A4], D6
00000148 5293 addq.l [A3], 1
0000014A 602E bra +0x30 /* 0000017A */
label0000014C:
0000014C 48C6 ext.l D6
0000014E 2006 move.l D0, D6
00000150 81FC 0002 divs.w D0, 0x2
00000154 3880 move.w [A4], D0
00000156 5293 addq.l [A3], 1
00000158 6020 bra +0x22 /* 0000017A */
label0000015A:
0000015A 48C6 ext.l D6
0000015C 2006 move.l D0, D6
0000015E 81FC 0004 divs.w D0, 0x4
00000162 3880 move.w [A4], D0
00000164 5293 addq.l [A3], 1
00000166 6012 bra +0x14 /* 0000017A */
label00000168:
00000168 48C6 ext.l D6
0000016A 2006 move.l D0, D6
0000016C 81FC 0008 divs.w D0, 0x8
00000170 3880 move.w [A4], D0
00000172 5293 addq.l [A3], 1
00000174 6004 bra +0x6 /* 0000017A */
label00000176:
00000176 7001 moveq.l D0, 0x01
00000178 6036 bra +0x38 /* 000001B0 */
label0000017A:
0000017A 2053 movea.l A0, [A3]
0000017C 7000 moveq.l D0, 0x00
0000017E 1010 move.b D0, [A0]
00000180 0480 0000 002E subi.l D0, 0x2E /* '.' */
00000186 6714 beq +0x16 /* 0000019C */
00000188 5B80 subq.l D0, 5
0000018A 6622 bne +0x24 /* 000001AE */
0000018C 3014 move.w D0, [A4]
0000018E 48C0 ext.l D0
00000190 E380 asl D0, 1
00000192 81FC 0003 divs.w D0, 0x3
00000196 3880 move.w [A4], D0
00000198 5293 addq.l [A3], 1
0000019A 6012 bra +0x14 /* 000001AE */
label0000019C:
0000019C 3014 move.w D0, [A4]
0000019E 48C0 ext.l D0
000001A0 2200 move.l D1, D0
000001A2 D080 add.l D0, D0
000001A4 D081 add.l D0, D1
000001A6 81FC 0002 divs.w D0, 0x2
000001AA 3880 move.w [A4], D0
000001AC 5293 addq.l [A3], 1
label000001AE:
000001AE 7001 moveq.l D0, 0x01
label000001B0:
000001B0 4CDF 18C0 movem.l D6,D7,A3,A4, [A7]+
000001B4 4E75 rts
fn000001B6:
000001B6 4E56 FEF6 link A6, -0x010A
000001BA 48E7 0318 movem.l -[A7], D6,D7,A3,A4
000001BE 286E 0008 movea.l A4, [A6 + 0x8]
000001C2 47EE FEFA lea.l A3, [A6 - 0x106]
000001C6 600A bra +0xC /* 000001D2 */
label000001C8:
000001C8 4A6D B25A tst.w [A5 - 0x4DA6]
000001CC 6704 beq +0x6 /* 000001D2 */
000001CE 4EAD 020A jsr [A5 + 0x20A /* export_61 */]
label000001D2:
000001D2 4AAD B25C tst.l [A5 - 0x4DA4]
000001D6 66F0 bne -0xE /* 000001C8 */
000001D8 4AAD B260 tst.l [A5 - 0x4DA0]
000001DC 66EA bne -0x14 /* 000001C8 */
000001DE 4A6D AF5C tst.w [A5 - 0x50A4]
000001E2 6706 beq +0x8 /* 000001EA */
000001E4 4247 clr.w D7
000001E6 6000 00A8 bra +0xAA /* 00000290 */
label000001EA:
000001EA 4AAE 0010 tst.l [A6 + 0x10]
000001EE 6644 bne +0x46 /* 00000234 */
000001F0 486E FFFE pea.l [A6 - 0x2]
000001F4 2F0C move.l -[A7], A4
000001F6 4EAD 01F2 jsr [A5 + 0x1F2 /* export_58 */]
000001FA 3E00 move.w D7, D0
000001FC 508F addq.l A7, 8
000001FE 6600 0090 bne +0x92 /* 00000290 */
00000202 558F subq.l A7, 2
00000204 486D B25C pea.l [A5 - 0x4DA4]
00000208 7000 moveq.l D0, 0x00
0000020A 3F00 move.w -[A7], D0
0000020C 7200 moveq.l D1, 0x00
0000020E 2F01 move.l -[A7], D1
00000210 486D 019A pea.l [A5 + 0x19A /* export_47 */]
00000214 A807 syscall SndNewChannel
00000216 3E1F move.w D7, [A7]+
00000218 6676 bne +0x78 /* 00000290 */
0000021A 558F subq.l A7, 2
0000021C 2F2D B25C move.l -[A7], [A5 - 0x4DA4]
00000220 2F2D B260 move.l -[A7], [A5 - 0x4DA0]
00000224 7001 moveq.l D0, 0x01
00000226 1F00 move.b -[A7], D0
00000228 A805 syscall SndPlay
0000022A 3E1F move.w D7, [A7]+
0000022C 4EAD 0202 jsr [A5 + 0x202 /* export_60 */]
00000230 3C00 move.w D6, D0
00000232 605C bra +0x5E /* 00000290 */
label00000234:
00000234 2F2E 0010 move.l -[A7], [A6 + 0x10]
00000238 2F0B move.l -[A7], A3
0000023A 4EAD 1B22 jsr [A5 + 0x1B22 /* export_864 */]
0000023E 7000 moveq.l D0, 0x00
00000240 1013 move.b D0, [A3]
00000242 5280 addq.l D0, 1
00000244 4233 0000 clr.b [A3 + D0.w]
00000248 204B movea.l A0, A3
0000024A 5288 addq.l A0, 1
0000024C 2D48 FEF6 move.l [A6 - 0x10A], A0
00000250 558F subq.l A7, 2
00000252 486D B25C pea.l [A5 - 0x4DA4]
00000256 7005 moveq.l D0, 0x05
00000258 3F00 move.w -[A7], D0
0000025A 7200 moveq.l D1, 0x00
0000025C 2F01 move.l -[A7], D1
0000025E 486D 019A pea.l [A5 + 0x19A /* export_47 */]
00000262 A807 syscall SndNewChannel
00000264 3E1F move.w D7, [A7]+
00000266 508F addq.l A7, 8
00000268 6626 bne +0x28 /* 00000290 */
0000026A 2F0C move.l -[A7], A4
0000026C 4EAD 01FA jsr [A5 + 0x1FA /* export_59 */]
00000270 3E00 move.w D7, D0
00000272 588F addq.l A7, 4
00000274 661A bne +0x1C /* 00000290 */
00000276 2F2E FEF6 move.l -[A7], [A6 - 0x10A]
0000027A 302E 000E move.w D0, [A6 + 0xE]
0000027E 48C0 ext.l D0
00000280 2F00 move.l -[A7], D0
00000282 4EBA 002E jsr [PC + 0x2E /* 000002B2 */]
00000286 3E00 move.w D7, D0
00000288 4EAD 0202 jsr [A5 + 0x202 /* export_60 */]
0000028C 3C00 move.w D6, D0
0000028E 508F addq.l A7, 8
label00000290:
00000290 4A47 tst.w D7
00000292 6604 bne +0x6 /* 00000298 */
00000294 4A46 tst.w D6
00000296 6704 beq +0x6 /* 0000029C */
label00000298:
00000298 4EAD 020A jsr [A5 + 0x20A /* export_61 */]
label0000029C:
0000029C 7000 moveq.l D0, 0x00
0000029E 4A47 tst.w D7
000002A0 6606 bne +0x8 /* 000002A8 */
000002A2 4A46 tst.w D6
000002A4 6602 bne +0x4 /* 000002A8 */
000002A6 7001 moveq.l D0, 0x01
label000002A8:
000002A8 4CEE 18C0 FEE6 movem.l D6,D7,A3,A4, [A6 - 0x11A]
000002AE 4E5E unlink A6
000002B0 4E75 rts
fn000002B2:
000002B2 4E56 FFF2 link A6, -0x000E
000002B6 48E7 0300 movem.l -[A7], D6,D7
000002BA 3C2E 000A move.w D6, [A6 + 0xA]
000002BE 6E02 bgt +0x4 /* 000002C2 */
000002C0 7C78 moveq.l D6, 0x78
label000002C2:
000002C2 48C6 ext.l D6
000002C4 203C 0001 D4C0 move.l D0, 0x1D4C0
000002CA 2206 move.l D1, D6
000002CC 4EAD 0352 jsr [A5 + 0x352 /* export_102 */]
000002D0 3D40 FFFA move.w [A6 - 0x6], D0
000002D4 3D7C 003C FFFE move.w [A6 - 0x2], 0x3C /* '<' */
000002DA 4247 clr.w D7
label000002DC:
000002DC 486E FFFC pea.l [A6 - 0x4]
000002E0 486E FFFE pea.l [A6 - 0x2]
000002E4 48C6 ext.l D6
000002E6 203C 0001 D4C0 move.l D0, 0x1D4C0
000002EC 2206 move.l D1, D6
000002EE 4EAD 0352 jsr [A5 + 0x352 /* export_102 */]
000002F2 2F00 move.l -[A7], D0
000002F4 486E FFFA pea.l [A6 - 0x6]
000002F8 486E 000C pea.l [A6 + 0xC]
000002FC 4EBA FD02 jsr [PC - 0x2FE /* 00000000 */]
00000300 4A40 tst.w D0
00000302 4FEF 0014 lea.l A7, [A7 + 0x14]
00000306 6772 beq +0x74 /* 0000037A */
00000308 302E FFFC move.w D0, [A6 - 0x4]
0000030C 48C0 ext.l D0
0000030E 72FF moveq.l D1, 0xFFFFFFFF
00000310 B280 cmp.l D1, D0
00000312 6628 bne +0x2A /* 0000033C */
00000314 3D7C 0029 FFF2 move.w [A6 - 0xE], 0x29 /* ')' */
0000031A 3D6E FFFA FFF4 move.w [A6 - 0xC], [A6 - 0x6]
00000320 7000 moveq.l D0, 0x00
00000322 2D40 FFF6 move.l [A6 - 0xA], D0
00000326 558F subq.l A7, 2
00000328 2F2D B25C move.l -[A7], [A5 - 0x4DA4]
0000032C 486E FFF2 pea.l [A6 - 0xE]
00000330 7201 moveq.l D1, 0x01
00000332 1F01 move.b -[A7], D1
00000334 A803 syscall SndDoCommand
00000336 3E1F move.w D7, [A7]+
00000338 6640 bne +0x42 /* 0000037A */
0000033A 60A0 bra -0x5E /* 000002DC */
label0000033C:
0000033C 302E FFFC move.w D0, [A6 - 0x4]
00000340 48C0 ext.l D0
00000342 72FF moveq.l D1, 0xFFFFFFFF
00000344 B280 cmp.l D1, D0
00000346 6E32 bgt +0x34 /* 0000037A */
00000348 3D7C 0028 FFF2 move.w [A6 - 0xE], 0x28 /* '(' */
0000034E 3D6E FFFA FFF4 move.w [A6 - 0xC], [A6 - 0x6]
00000354 302E FFFC move.w D0, [A6 - 0x4]
00000358 48C0 ext.l D0
0000035A D0BC FF00 0000 add.l D0, 0xFF000000
00000360 2D40 FFF6 move.l [A6 - 0xA], D0
00000364 558F subq.l A7, 2
00000366 2F2D B25C move.l -[A7], [A5 - 0x4DA4]
0000036A 486E FFF2 pea.l [A6 - 0xE]
0000036E 7001 moveq.l D0, 0x01
00000370 1F00 move.b -[A7], D0
00000372 A803 syscall SndDoCommand
00000374 3E1F move.w D7, [A7]+
00000376 6700 FF64 beq -0x9A /* 000002DC */
label0000037A:
0000037A 3007 move.w D0, D7
0000037C 4CEE 00C0 FFEA movem.l D6,D7, [A6 - 0x16]
00000382 4E5E unlink A6
00000384 4E75 rts
export_1228:
00000386 4E56 FDFE link A6, -0x0202
0000038A 48E7 0118 movem.l -[A7], D7,A3,A4
0000038E 49EE FF00 lea.l A4, [A6 - 0x100]
00000392 47EE FE00 lea.l A3, [A6 - 0x200]
00000396 206E 0008 movea.l A0, [A6 + 0x8]
0000039A 52AE 0008 addq.l [A6 + 0x8], 1
0000039E 1010 move.b D0, [A0]
000003A0 6500 00AA bcs +0xAC /* 0000044C */
000003A4 0C00 0001 cmpi.b D0, 0x1
000003A8 6200 00A2 bhi +0xA4 /* 0000044C */
000003AC 7200 moveq.l D1, 0x00
000003AE 1200 move.b D1, D0
000003B0 D241 add.w D1, D1
000003B2 323B 1006 move.w D1, [PC + D1.w + 0x6]
000003B6 4EFB 1000 jmp [PC + D1.w]
000003BA 0006 002A ori.b D6, 0x2A /* '*' */
000003BE 2F0B move.l -[A7], A3
000003C0 486E 0008 pea.l [A6 + 0x8]
000003C4 4EAD 0BD2 jsr [A5 + 0xBD2 /* export_374 */]
000003C8 3E00 move.w D7, D0
000003CA 508F addq.l A7, 8
000003CC 677E beq +0x80 /* 0000044C */
000003CE 7000 moveq.l D0, 0x00
000003D0 2F00 move.l -[A7], D0
000003D2 7278 moveq.l D1, 0x78
000003D4 2F01 move.l -[A7], D1
000003D6 2F0B move.l -[A7], A3
000003D8 4EBA FDDC jsr [PC - 0x224 /* 000001B6 */]
000003DC 4FEF 000C lea.l A7, [A7 + 0xC]
000003E0 606A bra +0x6C /* 0000044C */
000003E2 7000 moveq.l D0, 0x00
000003E4 2F00 move.l -[A7], D0
000003E6 2F0B move.l -[A7], A3
000003E8 486E 0008 pea.l [A6 + 0x8]
000003EC 4EAD 0BD2 jsr [A5 + 0xBD2 /* export_374 */]
000003F0 508F addq.l A7, 8
000003F2 2200 move.l D1, D0
000003F4 201F move.l D0, [A7]+
000003F6 4A41 tst.w D1
000003F8 673A beq +0x3C /* 00000434 */
000003FA 2F00 move.l -[A7], D0
000003FC 4878 7FFF push.l 0x7FFF
00000400 7201 moveq.l D1, 0x01
00000402 2F01 move.l -[A7], D1
00000404 486E FDFE pea.l [A6 - 0x202]
00000408 486E 0008 pea.l [A6 + 0x8]
0000040C 4EAD 0CAA jsr [A5 + 0xCAA /* export_401 */]
00000410 4FEF 0010 lea.l A7, [A7 + 0x10]
00000414 2200 move.l D1, D0
00000416 201F move.l D0, [A7]+
00000418 4A41 tst.w D1
0000041A 6718 beq +0x1A /* 00000434 */
0000041C 2F00 move.l -[A7], D0
0000041E 2F0C move.l -[A7], A4
00000420 486E 0008 pea.l [A6 + 0x8]
00000424 4EAD 0BD2 jsr [A5 + 0xBD2 /* export_374 */]
00000428 508F addq.l A7, 8
0000042A 2200 move.l D1, D0
0000042C 201F move.l D0, [A7]+
0000042E 4A41 tst.w D1
00000430 6702 beq +0x4 /* 00000434 */
00000432 7001 moveq.l D0, 0x01
label00000434:
00000434 3E00 move.w D7, D0
00000436 6714 beq +0x16 /* 0000044C */
00000438 2F0C move.l -[A7], A4
0000043A 302E FDFE move.w D0, [A6 - 0x202]
0000043E 48C0 ext.l D0
00000440 2F00 move.l -[A7], D0
00000442 2F0B move.l -[A7], A3
00000444 4EBA FD70 jsr [PC - 0x290 /* 000001B6 */]
00000448 4FEF 000C lea.l A7, [A7 + 0xC]
label0000044C:
0000044C 3007 move.w D0, D7
0000044E 4CEE 1880 FDF2 movem.l D7,A3,A4, [A6 - 0x20E]
00000454 4E5E unlink A6
00000456 4E75 rts